home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Internet / WWW / httpd_1.5.export / cgi-bin / nph-test-cgi < prev    next >
Text File  |  1995-11-09  |  736b  |  30 lines

  1. #!/bin/sh
  2.  
  3. echo HTTP/1.0 200 OK
  4. echo Content-type: text/plain
  5. echo Server: $SERVER_SOFTWARE
  6. echo
  7.  
  8. echo CGI/1.0 test script report:
  9. echo
  10.  
  11. echo argc is $#. argv is "$*".
  12. echo
  13.  
  14. echo SERVER_SOFTWARE = $SERVER_SOFTWARE
  15. echo SERVER_NAME = $SERVER_NAME
  16. echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE
  17. echo SERVER_PROTOCOL = $SERVER_PROTOCOL
  18. echo SERVER_PORT = $SERVER_PORT
  19. echo REQUEST_METHOD = $REQUEST_METHOD
  20. echo HTTP_ACCEPT = "$HTTP_ACCEPT"
  21. echo PATH_INFO = $PATH_INFO
  22. echo PATH_TRANSLATED = $PATH_TRANSLATED
  23. echo SCRIPT_NAME = $SCRIPT_NAME
  24. echo QUERY_STRING = $QUERY_STRING
  25. echo REMOTE_HOST = $REMOTE_HOST
  26. echo REMOTE_ADDR = $REMOTE_ADDR
  27. echo REMOTE_USER = $REMOTE_USER
  28. echo CONTENT_TYPE = $CONTENT_TYPE
  29. echo CONTENT_LENGTH = $CONTENT_LENGTH
  30.